package com.swufe.team;

import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.GridView;
import android.widget.ListAdapter;

import androidx.appcompat.app.AppCompatActivity;

public class Fivefiveday extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fivefiveday);
        GridView mylist=findViewById(R.id.mylist);

        String data[]={"one","two","three"};
//        String data2[]={};
        ListAdapter adapter= new ArrayAdapter<String>(this, android.R.layout.simple_list_item_activated_1,data);
        mylist.setAdapter(adapter);
        mylist.setEmptyView(findViewById(R.id.nodata));
    }
}